FROM 097364988641.dkr.ecr.cn-northwest-1.amazonaws.com.cn/dotnet-rd5-filebeat:latest
ENV PATH $PATH:/root/.dotnet/tools
ENV DOTNET_WORK /root
ENV TZ=PRC
ENV LANG C.UTF-8

SHELL ["/bin/bash", "-xo", "pipefail", "-c"]


RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf
ADD app.tar.gz ${DOTNET_WORK}

COPY filebeat.yml /etc/filebeat/filebeat.yml 
COPY ./entrypoint.sh /
#RUN /usr/bin/filebeat -e -c /etc/filebeat/filebeat.yml &

WORKDIR /root/app
#ENTRYPOINT ["dotnet", "WPay.Web.Services.dll","--urls","http://0.0.0.0:8001" ]
ENTRYPOINT ["/entrypoint.sh" ]
